package org.NooLab.glue.net.http.rest;

import java.util.Vector;



import org.NooLab.glue.net.DataSlot;
import org.NooLab.glue.net.ftp.GlueFtpletHandlerIntf;

import org.NooLab.utilities.logging.PrintLog; 


/**
 * 
 * 
 * 
 * 
 * 
 * 
 */
public class GlueRestlet implements Runnable{ // so, Observable is not possible any more...

	RestletContext restletContext  ;
	
	// GlueFtpletHandlerIntf glueBinding;
	// this is the important structure here: a callback address! 
	// we get it through the constructor
	GlueRestletHandlerIntf glueBinding;

	
	Thread gfThrd;
	boolean isRunning = false;
	boolean handlingNewBinding = false;
	
	int openConnectionsCount=0;
	
	/*
	 * streams are streams of data, where an interruption does NOT stop the connection;
	 * it relies on a keepAlivetimeOut
	 * streaming may be organized between two clients, then it requires incoming streams;
	 * a stream might also originate at side of the server, e.g. in case of a webcam,
	 * or after a database request
	 * 
	 * such streams could be relayed/directed to several receivers!
	 * 
	 */
	boolean ftpStreaming = false;
	int keepAlivetimeOut = 0 ;
	
	long globalTransmissionID = 0;
	
	Vector<DataSlot> dataSlots = new Vector<DataSlot>();
  	
	int printLevel = 2;
	PrintLog out ;

	public GlueRestlet( GlueRestletHandlerIntf gluebinding, int printlevel ){
		
	}

	@Override
	public void run() {
		// TODO Auto-generated method stub
		
	}
	
	

}
